
local M = {}
M.new = function (ctx, initParam)
    print(initParam)
    local handler = function (req, resp)
        local session = req:getSession()
        print(session.getSessionId())
        local body = "http get"
        resp.statusCode = 200
        resp:setHeader("Content-Type", "text/html")
        resp:setHeader("Content-Length", string.len(body))
        resp:write(body)
    end
    return handler
end

local moduleName = ...
_G[moduleName] = M
complex = M
return complex